<?php
require_once('constantes.php');
require_once('utils.php');
require_once('fct_tab.php');
require_once('photos_utils.php');
require_once('../fct_dao_invite.php');
require_once('../fct_dao_livreor.php');


define('URI_ERROR_PAGE'	,'http://' . $_SERVER['HTTP_HOST'] . '/wedding/lyndamarcel/' . tabGetIdByCode('TAB_ERROR'));
//echo phpinfo();
//Valuation de l'onglet à mettre en surbrillance
$currentIdTab = tabGetIdByCode('TAB_ACCUEIL');
if (isset($_GET['onglet'])) {
	$currentIdTab = $_GET['onglet'];
} else if (isset($_POST['onglet'])) {
	$currentIdTab = $_POST['onglet'];
}

//Get id mariage
$idMariage = getIdMariage();

echo getHeaderPage(false);
echo getBodyHeader();?>
<div id="contentBody">
	<div id="left">
		<?php echo getOngletMenu($idMariage, $currentIdTab); ?>
	</div>
	<div id="centerAndRight">
		<?php include_once(tabGetHtml($currentIdTab)); ?>
	</div>
	<div class="clearFloat"></div>
</div>
<?php echo getFooterPage();?>